package com.mhc.suzuki.dal.mapper.ext;

import com.mhc.suzuki.bo.AuditCustomerBO;
import com.mhc.suzuki.dal.mapper.CustomerMapper;
import com.mhc.suzuki.dal.model.CustomerDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Map;
/**
 * MyBatis Ext Mapper for Customer.
 */

@Mapper
@Repository
public interface CustomerExtMapper extends CustomerMapper {

    /**
     * 条件查询更换购车人后的主贷人信息
     * @param map
     * @return
     */
    CustomerDO getExchangedBuyer(Map<String, Object> map);

    /**
     * 条件查询更换购车人后的共同购车人信息
     * @param map
     * @return
     */
    CustomerDO getExchangedCommonBuyer(Map<String, Object> map);

    /**
     * 根据applyId查询审核页客户信息
     * @param applyId
     * @return
     */
    AuditCustomerBO getAuditCustomerBO(Long applyId);
}
